<template>
    <h1>父组件</h1>
    <button @click="dom.getNum">点击</button>
    <hr/>
    <article-com ref="dom"></article-com>
</template>
<!-- // setup作为script的属性 是 setup函数的语法糖 -->
<script setup>
import ArticleCom from './components/ArticleCom5.vue'
import {ref ,onMounted } from 'vue'
// ref绑定 组件 获取组件实例
  let dom = ref(null)


</script>
<script>
export default {
name: 'App',
}
</script>
